Ошибка при заполнении формы:
<table  border="0" align="center" cellpadding="0" cellspacing="5">  
  
<?php 
$errors = '';
$js = '';
foreach (Arm_Form::getErrorMesages() as $k=>$v) {
    
    $js .= '$(\'#'.$v['meta']['name'].'\').addClass("armFormErrorField");'. "\n";
    $js .=  '$("label[for=\''.$v['meta']['name'].'\']").addClass("armFormErrorLabel");' . "\n"; 
    $errors = '<tr>';
    if(isset($v['meta']['label'])) {
        $labelField = $v['meta']['label'];
    } else {
    	if(Arm_Core::getEnvironment() === 'staging') {
    		$labelField = '';
    	} else {
        $labelField = $v['meta']['name'];
    	}
    }
    
    $errors .= '<td><label for="'.$v['meta']['name'].'">'.$labelField.'</label></td> <td>'.implode('<br>',$v['message']).'</td>' . "\n";
    $errors .= '</tr>';
    echo $errors;
    $errors = '';
}

?>
<script>
  $(document).ready(function(){
    <?php echo $js; ?>
  });
  </script>
</table>